package org.dualr.litelog.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
/**
 * Category.java 
 * @author	DualR
 * @mail	dualrs@gmail.com
 * @site	http://mimaiji.appspot.com || http://www.mimaiji.com
 * @date	2009-8-3
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Category{
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String name;
	@Persistent
	private String type;
	@Persistent
	private Long parentId ;
	@Persistent
	private int counts;
	@Persistent
	private String meta;
	@Persistent
	private String meta1;
	@Persistent
	private String meta2;
	@Persistent
	private String meta3;
	
	public Category(String name, String type, Long parentId){
		this.name = name;
		this.type = type;
		this.parentId = parentId;
	}
	public Category(Long id, String name, String type, Long parentId, int counts) {
		this.id = id;
		this.name = name;
		this.type = type;
		this.parentId = parentId;
		this.counts = counts;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	public int getCounts() {
		return counts;
	}
	public void setCounts(int counts) {
		this.counts = counts;
	}
	public String getMeta() {
		return meta;
	}
	public void setMeta(String meta) {
		this.meta = meta;
	}
	public String getMeta1() {
		return meta1;
	}
	public void setMeta1(String meta1) {
		this.meta1 = meta1;
	}
	public String getMeta2() {
		return meta2;
	}
	public void setMeta2(String meta2) {
		this.meta2 = meta2;
	}
	public String getMeta3() {
		return meta3;
	}
	public void setMeta3(String meta3) {
		this.meta3 = meta3;
	}
	
}
